package cn.z2huo.knowledge.basic.recordclass;

record Student(String name, int age) {

    public static void main(String[] args) {
        Student student = new Student("zyz", 25);
        System.out.println(student);
        System.out.println(student.name());
        System.out.println(student.age());
    }

}
